import { useLocation } from 'umi';
import { IframeMicro } from '@/components/IframeMicro';

export default function Page1() {
  const location  = useLocation();

  return (
    <div style={{ height: 800, width: 500 }}>
      <IframeMicro activate={location.pathname.replace("/app1", "") === '/page1'} microApp="app1" path="/page1" />
    </div>
  );
}
